package com.lianxi

/**
  * Created by adengdeng on 2017/8/5 
  */
object Lx10 {

  def main(args: Array[String]): Unit = {

    /*
      没有subString方便
     */
    println("hello".take(1))
    println("hello".takeRight(1))
    println("hello".drop(1))
    println("hello".dropRight(1))
  }
}
